import {
    get, post, put, del, patch
} from './main'

// login
export const adminLogin = p => post('/sys/login', p, {
    "Content-Type": "application/x-www-form-urlencoded"
});

// logout
export const loginOut = p => post('/sys/logout', p);

//Get role list
export const getRoleList = p => get('/roles',p);

//Get Leave list
export const getLeaveList = p => get("/leave",p);

//Add leave
export const goAddLeave = p => post("/leave",p);

//add approve
export const goAddApprove = p=> post("/approve",p); 
